//
//  ViewController.m
//  LHAlterView
//
//  Created by Apple on 2017/12/8.
//  Copyright © 2017年 yxkj. All rights reserved.
//

#import "ViewController.h"
#import "LHAlterView.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
}
- (IBAction)fieldBtnClick:(id)sender {
    [LHAlterView lh_alterViewWithTextField:@"提示" AndContentString:@"这是一个神奇的弹窗" AndComfirmBtnTitle:@"确定" AndCancelTitle:@"取消" AndShow:self AndComfirmBlock:^(NSString * _Nullable fieldStr) {
        NSLog(@"点击确定按钮，返回用户输入的字符串=%@",fieldStr);
    } AndCancelBlock:^{
        NSLog(@"点击取消按钮");
    } AndCompletion:^{
        NSLog(@"控制器present完成的回调");
    } AndKeyBorderType:0 AndFieldPlaceHolder:@"情书价格"];
}
- (IBAction)btnClick:(id)sender {
    [LHAlterView lh_alterViewWithTitle:@"弹窗" AndContentString:@"不带输入框的弹窗" AndComfirmBtnTitle:@"真的" AndCancelTitle:@"假的" AndShow:self AndComfirmBlock:^{
        NSLog(@"确定按钮点击");
    } AndCancelBlock:^{
        NSLog(@"取消按钮点击");
    }];
    
}





@end
